<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
		<title>错误页面</title>
	</head>
	<link rel="stylesheet" href="font/iconfont.css" />
	
	<script type="text/javascript" src="../Shop-web/dist/lib/jquery-2.1.4.js" ></script>
	<link rel="stylesheet" href="css/css.css" />
	<link rel="stylesheet" href="dist/lib/weui.min.css">
	<link rel="stylesheet" href="dist/css/jquery-weui.min.css">
	<script src="dist/js/jquery-weui.min.js"></script>
	<link rel="stylesheet" href="js/layui/css/modules/layer/default/layer.css" />
	<script type="text/javascript" src="js/layui/lay/modules/layer.js"></script>
<!--<script>
	
function sss_000(){
	var sss1 = function sss_1(){
		var index = layer.msg("123");
		$(".wy-dele").html("测试");
	};
	var sss2 = function sss_2(){
		layer.close(index); 
		
	};
	
	sss1(sss2);
	
}
	
	
	
	
	
	
	
</script>-->

<script>
	
$(function () { 
	
    // 当Deferred对象被解决时，3个函数被调用
    function fn1() {
        //loading层
		var index = layer.load(1, {
		shade: [0.1,'#fff'] //0.1透明度的白色背景
		});
		$(".iframebox").attr("src","https://wemedia.ifeng.com/28002072/wemedia.shtml");
		
		
    }
    setTimeout('A()', 1000); //延迟1秒

  
    //创建一个deferred对象
    var dfd = $.Deferred();
    // 添加当dfd解决时被调用的处理程序
    dfd
    // .done() 可以获取函数或函数数组的数量
        //.done( [ fn1 ])
    // 我们也可以连接其他的方法
        .done([ fn1 ],function() {
            layer.closeAll(); 
      });
    // 当按钮被点击时修改状态为已完成
    $( ".wy-dele" ).on( "click", function() {
       dfd.resolve();
        
    });
})
</script>
	<body class="bg">
		<div class="shopping" style=" padding-top:45px;">
			<div class="nolist">
				<img src="img/nopage.jpg">
				<p>网络不给力，请稍等</p>
				<a href="">返回首页</a>
			</div>
		</div>
		<iframe class="iframebox" width="120" height="90" src=""></iframe>
		<div class="wy-dele">测试</div>
	</body>

</html>